package com.example.studentmanagement2.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
@Entity
@AllArgsConstructor // 添加Lombok全参构造注解
@Data
@Table(name = "teachers")  // 确保表名匹配
public class Teacher {
    @Id
    private String id;
    private String name;


    public Teacher() {}
}